package string;

public class StringBuilderDemo {
    public static void main(String[] args) {
        StringBuilder builder = new StringBuilder();
        StringBuilder builder2 = new StringBuilder("abc");

        String s = "abc";
        StringBuilder builder3 = new StringBuilder(s);
        String s1 = builder3.toString();
        System.out.println(builder3.append(s));
        builder3.replace(1,4,"abc");
        System.out.println(builder3);
        System.out.println(builder3.delete(0, 1));
        System.out.println(builder3.insert(3, "ab"));
    }
}
